const state = {
  searchShow: true, // 控制热门搜索隐藏
  searchVal: JSON.parse(localStorage.searchList || '[]') // 搜索历史
}

const mutations = {
  'ADD_SOUSUOLISHI'(state, payload) {
    state.searchVal = payload
    localStorage.searchList = JSON.stringify(state.searchVal)
  }
}

const actions = {

}

const getters = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}